package com.kwin.servlet;

import java.util.HashMap;
import java.util.LinkedHashMap;

public class DB {
    private static LinkedHashMap<String, Book> linkedHashMap = new LinkedHashMap<>();

    static {
        linkedHashMap.put("1", new Book("1","javaweb","zhong"));
        linkedHashMap.put("2", new Book("2","java","fu"));
        linkedHashMap.put("3", new Book("3","oracle","cheng"));
        linkedHashMap.put("4", new Book("4","mysql","ou"));
        linkedHashMap.put("5", new Book("5","ajax","zi"));
    }

    public static LinkedHashMap<String, Book> getAll() {
        return linkedHashMap;
    }
}
